# Maintainer: mio <miyopan@e.email>
maintainer="mio <miyopan@e.email>"
pkgname=libgedit-gfls
pkgver=0.2.0
pkgrel=0
pkgdesc="Gedit Technology — file loading and saving"
url="https://gitlab.gnome.org/World/gedit/libgedit-gfls"
arch="all"
license="LGPL-3.0-or-later"
makedepends="
	docbook-xsl-nons
	glib-dev
	gobject-introspection-dev
	gtk-doc
	gtk+3.0-dev
	meson
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://gitlab.gnome.org/World/gedit/libgedit-gfls/-/archive/$pkgver/libgedit-gfls-$pkgver.tar.gz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dgobject_introspection=true \
		-Dgtk_doc=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
6690407df735336aae62050141cdc901ce1910f178d707d3a0c7e1e4fb047e12964b59c9be5a0287c816576e3b18527353ea71779ab13dc05c1f2ebe1213c7b0  libgedit-gfls-0.2.0.tar.gz
"
